package com.bub.pay.mq.consumer.config;

import com.bub.pay.core.enums.UserTypeEnum;
import com.bub.pay.core.manager.system.CurrentSystemManager;
import com.bub.pay.framework.common.base.Module;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 当前系统配置
 * @author recall
 * @date 2019/7/5
 */
@Configuration
public class SystemManagerConfig {

    /**
     * 当前系统
     * @return 当前系统
     */
    @Bean
    CurrentSystemManager systemManager(){
        return new CurrentSystemManager() {
            @Override
            public Module getModule() {
                return Module.mq_consumer;
            }

            @Override
            public UserTypeEnum getUserType() {
                return UserTypeEnum.openservice;
            }
        };
    }

}
